package com.cswnode.demo.util;

/**
 * @author csw
 * @create 2021/1/28 13:50
 */

public class RedisKeyUtil {

    /**
     * 连接
     */
    private static final String ATTACH = ":";

    /**
     * 验证码
     */
    private static final String KAPTCHA = "kaptcha";

    /**
     * 凭证
     */
    private static final String TICKET = "ticket";

    /**
     * 数据汇总
     */
    private static final String DATASUMMARY = "dataSummary";

    /**
     * 登录验证码
     */
    public static String getKaptcha(String owner){
        return KAPTCHA + ATTACH + owner;
    }

    /**
     * 登录凭证
     */
    public static String getTicket(String ticket){
        return TICKET + ATTACH + ticket;
    }

    public static String getDatasummary(){
        return DATASUMMARY;
    }


}
